-
Notifications
You must be signed in to change notification settings - Fork 236
patch/non-evm-support-devtools-move #1779
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors address format handling to support multiple blockchain encodings (EVM hex, Solana base58, TON base64) through auto-detection rather than endpoint ID-based chain type checking. The key improvement is a unified basexToBytes32() function that automatically detects and converts any supported address format to a consistent bytes32 representation.
Key Changes:
- Replaced chain-type-based address conversion with automatic format detection
- Unified all address comparison and conversion operations to use
basexToBytes32() - Removed now-redundant helper functions (
formatAddress,evmAddressToAptos,decodeSolanaAddress)
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| packages/devtools-move/tasks/shared/basexToBytes32.ts | Complete refactor with auto-detection logic for base58, base64, and hex formats; removed endpoint ID parameter |
| packages/devtools-move/tasks/move/utils/moveVMOftConfigOps.ts | Replaced formatAddress and evmAddressToAptos with basexToBytes32 throughout; removed obsolete helper functions |
| packages/devtools-move/tasks/evm/wire-evm.ts | Updated basexToBytes32 call to remove endpoint ID parameter |
| packages/devtools-move/jest/baseXtoBytes32.test.ts | Rewrote tests to validate auto-detection behavior instead of chain-type-specific conversions |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
9737049 to
b7f945f
Compare
Signed-off-by: shankar <[email protected]>
Signed-off-by: shankar <[email protected]>
Signed-off-by: shankar <[email protected]>
Signed-off-by: shankar <[email protected]>
e47dc3c to
6f0b4f5
Compare
Instead of returning addresses based on
eidparse them based on their encoding by padding tobytes32or frombase58for Solana.Signed-off-by: shankar [email protected]